package com.hqyj.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.hqyj.pojo.Role;
import com.hqyj.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

/**
 * @author xfy
 * @create 2021-10-27 11:08
 */
@RestController
@RequestMapping("/roleRestful")
public class RoleRestFulController {
    @Autowired
    private IRoleService roleService;

    @RequestMapping("/roleList")
    public HashMap<String,Object> roleList(Role r){
        return roleService.select(r);
    }

    @RequestMapping("/roleNamelist")
    public HashMap<String,Object> roleNamelist(Integer sysId){
        return roleService.selectRoleNameById(sysId);
    }
}
